
#include "s3c2440_soc.h"

void delay(int i)
{
	while(i--);
}

int main(void)
{
	int temp, val = 0;
	
	GPFCON &= ~((3<<8)|(3<<10)|(3<<12));
	GPFCON |=  ((1<<8)|(1<<8)|(1<<8));

	while(1)
	{
		temp = ~val;
		temp &= 7;
		GPFDAT &= ~(7<<4);
		GPFDAT |=  (temp<<4);
		delay(10000);
		val++;
		if(val == 8)
		{
			val = 0;
		}
	}
	
	return 0;
}


